package com.qianmi.cloud.api;

import com.qianmi.cloud.respone.SysUserResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description
 * @Date: 1/18/22 15:54
 * @Created by xiaocai
 */
@FeignClient("spring-cloud-system-app")
public interface UserQueryProvider {

    /**
     * 通过用户名查询用户、角色信息
     *
     * @param username 用户名
     * @return
     */
    @GetMapping("/user/info/{username}")
    SysUserResponse loadUserByUsername(@PathVariable("username") String username);
}
